#include "FSObject.h"

FSObject::FSObject(int id, string name) : id(id), name(name) {}

bool FSObject::operator<(const FSObject& fs) const {
    return (id == fs.id)?(name < fs.name):(id < fs.id);
}

const string FSObject :: get_name() const{
    return this->name;
};

int FSObject :: get_id() const {
    return this->id;
}

void FSObject :: set_id(int id) {
    this->id = id;
}
